﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaobaoERP.BusinessAPI.ProductAPI
{
    interface IProduct
    {
        /// <summary>
        /// 此接口方法以实现得到当前会话用户（必须为卖家）的出售中商品列表。支持分页。
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="nickname"></param>
        /// <param name="q"></param>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        List<T> ListOnSaleBySeller<T>(string nickname, string q, int PageIndex, int PageSize);
        /// <summary>
        /// 此接口方法用以搜索当前会话用户（必须为卖家）的库存商品。支持分页。
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="nickname"></param>
        /// <param name="q"></param>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        List<T> ListInStockBySeller<T>(string nickname, string q, int PageIndex, int PageSize);
        /// <summary>
        ///  	此接口方法用以搜索搜索单个商品信息。
        /// </summary>
        /// <param name="id"></param>
        /// <param name="nickname"></param>
        /// <returns></returns>
        T GetInfoByID<T>(string id, string nickname);

        void Add();
        void Update();
    }
}
